package com.example.mystartertest;



import com.example.starter.mystarter.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: Deyou
 * @Date: 2021/4/9
 */
@RestController
public class StarterTestController {
    @Resource
    PersonService personService;
    @GetMapping("/hello")
    public String hello(){
        return personService.sayHello();
    }
}
